ia.NumericClassifier Class
Classifies numeric data.
Constructor
ia.NumericClassifier
-
data
Parameters:
-
data
NumberThe data array.
Item Index
Methods
Methods
_adjustBreak
-
formattedValue
Adjusts a break for a range class.
Parameters:
-
formattedValue
StringThe formatted value
Returns:
_buildClasses
-
p
Rebuilds the classes.
Parameters:
-
p
NumberAn optional precision.
_buildPalettes
()
private
Rebuilds the breaks.
commitChanges
()
Call this to commit any changes.
getBreaks
()
Number
The list of breaks
Returns:
getCalculator
()
ia.Calculator
Used for calculating the breaks.
Returns:
getClass
-
value
Gets the legend class for the given value.
Parameters:
-
value
NumberThe value.
Returns:
getClasses
()
ia.NumberClass[]
An array of legend classes contained in the classifier.
Returns:
getData
()
Number
Gets the data.
Returns:
setData
-
value
Sets the data.
Parameters:
-
value
NumberThe data.
Properties
classificationName
String
The name of the classification to use when calculating breaks.
Possible values include:
ia.Thematic.CONTINUOUS
ia.Thematic.EQUAL_INTERVAL
ia.Thematic.QUANTILE
ia.Thematic.NATURAL
ia.Thematic.STANDARD_DEVIATION
Default: ia.Thematic.EQUAL_INTERVAL
labels
String
A list of labels used in place of the default values.
maxRule
String
The maximum rule classes. Valid rules are "<=" or "<".
Default: "<="
minRule
String
The minimum rule for range classes. Valid rules are ">=" or ">".
Default: ">="
noClasses
Number
The number of classes to calculate breaks for.
Default: 5
precision
Number
The precision.
sdLabels
String
The list of standard deviation labels.
Default: ["> 2 SD below mean","1 - 2 SD below mean","0 - 1 SD below mean","0 - 1 SD above mean","1 - 2 SD above mean","> 2 SD above mean"]